<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/good_index')}" <if condition="$cur eq 商品管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">商品管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/good_type')}" <if condition="$cur eq 分类管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">分类管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/exchange_manage')}" <if condition="$cur eq 兑换管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='3'>
				<div class="lineColumn pos_abs"></div>
				<label for="">兑换管理</label>
				<div class="rightArrow">
				</div>
			</a>
		
			
		</div>


		
		<!-- 二 3.1 商品管理  -->
		<div class="contentArea tabPage actived">
			<!-- 3.1.1 商品管理 -->
			<div id="employeeManage">
				<form action="" method="POST">
					<div class="caTitleBox dpflxr">
						<label for="" class="caTitle">商品管理</label>
						<div class="dpflxr hWrapper">
							<input type="text" class="searchBox" name="name" value="{$name}" placeholder="请输入商品名称"/>
							<div class="headItem  dpflxr">
								<select name="status" id="" class="selectBox">
									<option value="">状态</option>
									<option value="1" <if condition="$status eq 1">selected</if>>上架</option>
									<option value="2" <if condition="$status eq 2">selected</if>>下架</option>
								</select>
							</div>
							
							<div><button type="submit" class="caBtn searchBtn">查询</button></div>
							<a href="{:U('Mechanism/good_add')}" id="addProject" class="caBtn ">新增商品</a>
						</div>
				</div>
				</form>
				<div class="caTable card">
					<table border="0" width="100%">
							<tbody>
								<tr>
									<th scope="col" width="17%" style="border-top-left-radius: 6px;">封面图</th>
								
									<th scope="col" width="25%">商品名称</th>
									<th scope="col" width="8%">分类</th>
									<th scope="col" width="8%">所需积分</th>
									
									<th scope="col" width="8%">当前状态</th>
								
									<th scope="col" width="12%">时间</th>
									
									<th scope="col" width="22%" style="border-top-right-radius: 6px;box-sizing: border-box;" >操作</th>
								</tr>
								<volist name="list" id="item">
								<tr>
							
									<td>
										<div class="image">
											<img src="{$item['img']}" >
										</div>
									</td>
									<td>{$item['name']}</td>
									<td >{$item['type_name']}</td>
									<td>{$item['point']}</td>
									<td>{$item['status_name']}</td>
								
									
									<td>{$item['create_time']}</td>
									
									<td style="box-sizing: border-box;" ><a href="{:U('Mechanism/good_add',array('id'=>$item['id']))}">编辑</a><a href="{:U('Mechanism/good_del',array('id'=>$item['id']))}">删除</a><if condition="$item['status'] eq 1"><a href="{:U('Mechanism/sj',array('id'=>$item['id'],'status'=>2))}">取消上架</a><else /><a href="{:U('Mechanism/sj',array('id'=>$item['id'],'status'=>1))}">上架</a></if></td>
								</tr>
								</volist>
						
							</tbody>
					</table>
				</div>
					<div class="page">
			            {$_page}
			        </div>
			</div>
		
				
			
		</div>
		
		
	</body>
</html>
